package com.atguigu.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author : wenchao.long
 * @date : Created in 2020/11/01 19:24:39 周日
 * @description :
 */
@Controller
@RequestMapping("/hello")
public class HelloController {

    @RequestMapping("/h1")
    public String hello(Model model) {
        model.addAttribute("msg", "Controller");
        return "hello";
    }
}
